package com.myCommunity.dao.impl;

import java.util.List;

import org.hibernate.Session;

import com.myCinema.dao.HibernateUtil;
import com.myCommunity.dao.MessageReceivingDao;
import com.myCommunity.entity.MessageReceiving;

public class MessageReceivingDaoImpl implements MessageReceivingDao {

	public List<MessageReceiving> getList(int receiver, int readed) {
		Session sess = null;
		try{
			sess = HibernateUtil.openSession();
			String sql = "from MessageReceiving where receiver = :receiver and 1=1";
			if(readed > 0)
				sql += " and readed = :readed";
			return null;
		}finally{
			sess.close();
		}
	}

}
